home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 March
/
Macworld (1998-03) (Disk 1).dmg
/
Shareware World
/
Info
/
For Developers
/
FatObjectPlant1.4.3
/
Code Generation templates
/
C++Template.h
< prev
next >
Wrap
Text File
|
1997-09-07
|
2KB
|
35 lines
// Code generated by Object Plant
{CLASS}
#ifndef __{CLASSNAME}
#define __{CLASSNAME}
{ANCESTORLIST}"#include\t\""{ANCESTORNAME}".h\"\r#include\t\""{END}".h\""{/ANCESTORLIST}
{USERCODE}
{FILENAME}{SUBSYSTEM} ƒ:{/SUBSYSTEM}{CLASSNAME}.h{/FILENAME}
"class\t"{CLASSNAME}{ABSTRACT}{ANCESTORLIST}" : public "{ANCESTORNAME}, {/ANCESTORLIST}{/ABSTRACT}
{
{PUBLIC}"\tpublic:"
"\t\t// methods"
"\t\t"{OPERATION}{STATIC}static {/STATIC}{OVERRIDE}virtual {/OVERRIDE}{RETURNTYPE}"\t"{NAME}({PARAMETER}" "{TYPE} {NAME}{DEFAULTVALUE}" = "{VALUE}{/DEFAULTVALUE}", "{END}" "{/PARAMETER}")"{CONST}" const"{/CONST}{ABSTRACT}" = 0"{/ABSTRACT};
{/OPERATION}
"\t\t// attributes"
"\t\t"{ATTRIBUTE}{STATIC}static {/STATIC}{TYPE}"\t"{NAME};
{/ATTRIBUTE}{/PUBLIC}
{PROTECTED}"\tprotected:"
"\t\t// methods"
"\t\t"{OPERATION}{STATIC}static {/STATIC}{OVERRIDE}virtual {/OVERRIDE}{RETURNTYPE}"\t"{NAME}({PARAMETER}" "{TYPE} {NAME}{DEFAULTVALUE}" = "{VALUE}{/DEFAULTVALUE}", "{END}" "{/PARAMETER}")"{CONST}" const"{/CONST}{ABSTRACT}" = 0"{/ABSTRACT};
{/OPERATION}
"\t\t// attributes"
"\t\t"{ATTRIBUTE}{STATIC}static {/STATIC}{TYPE}"\t"{NAME};
{/ATTRIBUTE}{/PROTECTED}
{PRIVATE}"\tprivate:"
"\t\t// methods"
"\t\t"{OPERATION}{STATIC}static {/STATIC}{OVERRIDE}virtual {/OVERRIDE}{RETURNTYPE}"\t"{NAME}({PARAMETER}" "{TYPE} {NAME}{DEFAULTVALUE}" = "{VALUE}{/DEFAULTVALUE}", "{END}" "{/PARAMETER}")"{CONST}" const"{/CONST}{ABSTRACT}" = 0"{/ABSTRACT};
{/OPERATION}
"\t\t// attributes"
"\t\t"{ATTRIBUTE}{STATIC}static {/STATIC}{TYPE}"\t"{NAME};
{/ATTRIBUTE}{/PRIVATE}
};
#endif
{/CLASS}